<template>
  <view class="container">
    <!-- 蓝桥标志 -->
    <view class="logo-container">
      <image class="logo" src="/static/lanqiao_logo.png"></image>
    </view>
    <!-- 手机号输入框 -->
    <view class="input-container">
      <input type="number" placeholder="请输入手机号" v-model="phoneNumber"/>
    </view>
    <!-- 密码输入框 -->
    <view class="input-container">
      <input type="password" placeholder="请输入密码" v-model="password"/>
    </view>
    <!-- 登录按钮 -->
    <view class="button-container">
      <button class="login-button" @click="login">登录</button>
    </view>
    <!-- 立即注册链接 -->
    <view class="register-link" @click="goToRegister">立即注册</view>
  </view>
</template>
<script>
export default {
  data() {
    return {
      phoneNumber: '',
      password: ''
    };
  },
  methods: {
    login() {
      // 这里编写登录逻辑，例如调用接口验证手机号和密码
      console.log('手机号:', this.phoneNumber);
      console.log('密码:', this.password);
    },
    goToRegister() {
      // 这里编写跳转到注册页面的逻辑
      console.log('前往注册页面');
    }
  }
};
</script>


<style>
.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #fff;
}
.logo-container {
  margin-bottom: 50px;
}
.logo {
  width: 150px;
  height: auto;
}
.input-container {
  width: 300px;
  margin-bottom: 20px;
}
.input-container input {
  width: 100%;
  height: 40px;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 0 10px;
  font-size: 14px;
}
.button-container {
  width: 300px;
  margin-bottom: 30px;
}
.login-button {
  width: 100%;
  height: 40px;
  background-color: #007AFF;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.register-link {
  color: #666;
  font-size: 14px;
}
</style>